/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package EJEMPLOSawt;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.awt.Frame;
import java.awt.TextArea;
import java.awt.TextField;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

/**
 *
 * @author pueblax
 */
public class ejemplos {
public static void main (String args[]){
    Frame f=new Frame();
TextField t=new TextField();
TextArea a=new TextArea();


    f.add(BorderLayout.SOUTH,t);
    f.add(BorderLayout.CENTER,a);
a.setBackground(Color.BLACK);//color de fondo
a.setForeground(Color.red);//poara el color de letra
a.setFont(new Font("Arial", Font.BOLD, 20));

f.addWindowListener(new WindowAdapter(){
    public void windowClosing(WindowEvent e){
       System.exit(0);
    }
    
});

    f.setVisible(true);
    f.setSize(500, 500);



}
}
